package com.seari.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * @author TOUC 实时报警信息
 *
 */
// 1. 设置mongoDb主键 会大幅影响查询效率 , 所以舍弃主键 , 改为自动生成 . 
// 2. 实时报警表中的数据 , 根据报警状态(status) , 已恢复时便删除并进入历史报警
public class AlarmReal implements Serializable {
	
	private static final long serialVersionUID = 1234567890L;

	// 报警时间
	private String alarmTime;
	// 报警车站
	private String alarmStation;
	// 系统
	private String alarmSystem;
	// 报警原因
	private String reason;
	// 报警级别
	private int alarmLevel;
	// 报警状态 (0是未恢复 , 1 是已恢复)
	private int regainStatu;
	// 确认状态 (0表示未确认 , 1是已确认)
	private int sureStatu;
	// 确认人
	private String usr;
	//确认时间
	private String sureTime;
	//恢复时间
	private String regainTime;
	public AlarmReal(String alarmTime, String alarmStation, String alarmSystem,
			String reason, int alarmLevel, int regainStatu, int sureStatu,
			String usr, String sureTime, String regainTime) {
		super();
		this.alarmTime = alarmTime;
		this.alarmStation = alarmStation;
		this.alarmSystem = alarmSystem;
		this.reason = reason;
		this.alarmLevel = alarmLevel;
		this.regainStatu = regainStatu;
		this.sureStatu = sureStatu;
		this.usr = usr;
		this.sureTime = sureTime;
		this.regainTime = regainTime;
	}
	public AlarmReal() {
		super();
		// TODO Auto-generated constructor stub
	}
	public String getAlarmTime() {
		return alarmTime;
	}
	public void setAlarmTime(String alarmTime) {
		this.alarmTime = alarmTime;
	}
	public String getAlarmStation() {
		return alarmStation;
	}
	public void setAlarmStation(String alarmStation) {
		this.alarmStation = alarmStation;
	}
	public String getAlarmSystem() {
		return alarmSystem;
	}
	public void setAlarmSystem(String alarmSystem) {
		this.alarmSystem = alarmSystem;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public int getAlarmLevel() {
		return alarmLevel;
	}
	public void setAlarmLevel(int alarmLevel) {
		this.alarmLevel = alarmLevel;
	}
	public int getRegainStatu() {
		return regainStatu;
	}
	public void setRegainStatu(int regainStatu) {
		this.regainStatu = regainStatu;
	}
	public int getSureStatu() {
		return sureStatu;
	}
	public void setSureStatu(int sureStatu) {
		this.sureStatu = sureStatu;
	}
	public String getUsr() {
		return usr;
	}
	public void setUsr(String usr) {
		this.usr = usr;
	}
	public String getSureTime() {
		return sureTime;
	}
	public void setSureTime(String sureTime) {
		this.sureTime = sureTime;
	}
	public String getRegainTime() {
		return regainTime;
	}
	public void setRegainTime(String regainTime) {
		this.regainTime = regainTime;
	}
	@Override
	public String toString() {
		return "AlarmReal [alarmTime=" + alarmTime + ", alarmStation="
				+ alarmStation + ", alarmSystem=" + alarmSystem + ", reason="
				+ reason + ", alarmLevel=" + alarmLevel + ", regainStatu="
				+ regainStatu + ", sureStatu=" + sureStatu + ", usr=" + usr
				+ ", sureTime=" + sureTime + ", regainTime=" + regainTime + "]";
	}
	
	
	
}
